package com.opencv.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author wh.wang
 * @date 2021/7/15 14:17
 * @descripitions 区域编码表
 */
@ApiModel("区域编码表")
@TableName("cgm_region_code")
public class CgmRegionCodeEntity implements Serializable {
    private static final long serialVersionUID = 581756370638824640L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private Long id;
    /**
     * 区域名称
     */
    @ApiModelProperty(value = "区域名称")
    private String name;
    /**
     * 区域上级标识
     */
    @ApiModelProperty(value = "区域上级标识")
    private Long pid;
    /**
     * 地名简称
     */
    @ApiModelProperty(value = "地名简称")
    private String sname;
    /**
     * 区域等级 0:国家 1：省 2：市 3：区（县）
     */
    @ApiModelProperty(value = "区域等级 0:国家 1：省 2：市 3：区（县）")
    private Integer level;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    private String citycode;
    /**
     * 邮政编码
     */
    @ApiModelProperty(value = "邮政编码")
    private String yzcode;
    /**
     * 组合名称
     */
    @ApiModelProperty(value = "组合名称")
    private String mername;
    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    private Float lng;
    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private Float lat;
    /**
     * 拼音
     */
    @ApiModelProperty(value = "拼音")
    private String pinyin;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getYzcode() {
        return yzcode;
    }

    public void setYzcode(String yzcode) {
        this.yzcode = yzcode;
    }

    public String getMername() {
        return mername;
    }

    public void setMername(String mername) {
        this.mername = mername;
    }

    public Float getLng() {
        return lng;
    }

    public void setLng(Float lng) {
        this.lng = lng;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
